package com.mrd.gtimp.base.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author qiul
 */
@Entity(name = "T_SYS_ITF")
public class SystemInterface implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID")
    private String id;

    @Column(name = "NAME")
    private String name;
    /**
     * 删除状态
     */
    @Column(name = "del_state")
    private String state;
    /**
     * 使用状态
     */
    @Column(name = "use_state")
    private String use_state;

    @ManyToOne
    @JoinColumn(name = "i_type", referencedColumnName = "b_identifier")
    private SystemValue systemValue;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUse_state() {
        return use_state;
    }

    public void setUse_state(String use_state) {
        this.use_state = use_state;
    }

    public SystemValue getSystemValue() {
        return systemValue;
    }

    public void setSystemValue(SystemValue systemValue) {
        this.systemValue = systemValue;
    }

    @Override
    public String toString() {
        return "SystemInterface [id=" + id + ", name=" + name + "]";
    }
}
